package com.imooc.enums;

import lombok.Getter;

/**
 * FileName: OrderStatusEnum.java
 * Description: 订单状态枚举
 *
 * @author HuangRI(874668739 @ qq.com)
 * @version 1.0
 * @date 2020/12/17
 */
@Getter
public enum OrderStatusEnum implements BaseEnum {

    NEW(0, "新下单"),
    FINISHED(1, "完结"),
    CANCEL(2, "已取消");

    /** 订单状态码 */
    private Integer code;

    /** 订单状态文本 */
    private String message;

    OrderStatusEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
